package com.cdz.charger.domain;

import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import com.cdz.common.annotation.Excel;
import com.cdz.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 预约对象 reservation
 *
 * @author baefengk2
 * @date 2025-03-10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("预约实体")
public class Reservation extends BaseEntity
        {
private static final long serialVersionUID=1L;

        /** 主键id */
        @ApiModelProperty(value = "主键ID")
        private Long id;

        /** 用户id */
        @Excel(name = "用户id")
        @ApiModelProperty(value = "用户id")
        private Long userId;

        /** 充电桩id */
        @Excel(name = "充电桩id")
        @ApiModelProperty(value = "充电桩id")
        private Long chargerId;

        /** 开始时间 */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "开始时间")
        private LocalDateTime startTime;

        /** 结束时间 */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "结束时间")
        private LocalDateTime endTime;

        /** 状态(1正常  0失效) */
        @Excel(name = "状态(1正常  0失效)")
        @ApiModelProperty(value = "状态(1正常  0失效)")
        private int status;

}